home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{24FA68C7-9436-11D2-A5CA-C740103BFF31}#1.0#0"; "WorkBookOCX.ocx"
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 4650
- ClientLeft = 90
- ClientTop = 375
- ClientWidth = 6810
- LinkTopic = "Form1"
- MDIChild = -1 'True
- ScaleHeight = 4650
- ScaleWidth = 6810
- Begin VB.PictureBox pic_Main
- Height = 4335
- Left = 0
- ScaleHeight = 4275
- ScaleWidth = 6675
- TabIndex = 0
- Top = 120
- Width = 6735
- Begin VB.TextBox Text1
- Height = 1575
- Index = 5
- Left = 0
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 7
- Text = "Form1.frx":0000
- Top = 0
- Width = 3735
- End
- Begin VB.TextBox Text1
- Height = 1575
- Index = 4
- Left = 0
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 6
- Text = "Form1.frx":0006
- Top = 0
- Width = 3735
- End
- Begin VB.TextBox Text1
- Height = 1575
- Index = 3
- Left = 0
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 5
- Text = "Form1.frx":000C
- Top = 0
- Width = 3735
- End
- Begin VB.TextBox Text1
- Height = 1575
- Index = 2
- Left = 0
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 4
- Text = "Form1.frx":0012
- Top = 0
- Width = 3735
- End
- Begin VB.TextBox Text1
- Height = 1575
- Index = 1
- Left = 0
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 3
- Text = "Form1.frx":0018
- Top = 0
- Width = 3735
- End
- Begin VB.TextBox Text1
- Height = 1575
- Index = 0
- Left = 120
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 2
- Text = "Form1.frx":001E
- Top = 120
- Width = 3735
- End
- Begin WorkBookOCX.WorkBook WorkBook1
- Height = 330
- Left = 960
- TabIndex = 1
- Top = 3480
- Width = 5415
- _ExtentX = 9551
- _ExtentY = 582
- BeginProperty WorkSheetFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- WorkSheetCount = 6
- End
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_Load()
- Form_Resize
- End Sub
- Private Sub Form_Resize()
- On Error Resume Next
- With pic_Main
- .Left = ScaleLeft
- .Width = ScaleWidth
- .Top = ScaleTop
- .Height = ScaleHeight
- .Visible = True
- End With
- If WindowState = 0 Then
- pic_Main.BorderStyle = 1
- pic_Main.BorderStyle = 0
- End If
- End Sub
- Private Sub pic_Main_Resize()
- On Error Resume Next
- With WorkBook1
- .Top = pic_Main.ScaleHeight - WorkBook1.Height
- .Left = pic_Main.ScaleLeft
- .Width = pic_Main.ScaleWidth
- End With
- Dim i As Integer
- For i = 0 To Text1.Count - 1
- With Text1(i)
- .Font.Name = "Tahoma"
- .BorderStyle = 0
- .Left = pic_Main.ScaleLeft
- .Width = pic_Main.ScaleWidth
- .Top = pic_Main.ScaleTop
- .Height = pic_Main.ScaleHeight - WorkBook1.Height
- .Text = .Name & "(" & .Index & ")"
- End With
- Text1(WorkBook1.ActiveWorkSheet - 1).Visible = True
- Text1(WorkBook1.ActiveWorkSheet - 1).ZOrder 0
- End Sub
- Private Sub WorkBook1_SheetSwitch(ByVal nIndex As Double)
- Text1(WorkBook1.ActiveWorkSheet - 1).Visible = True
- Text1(WorkBook1.ActiveWorkSheet - 1).ZOrder 0
- Text1(nIndex - 1).Visible = True
- Text1(nIndex - 1).ZOrder 0
- Text1(nIndex - 1).SetFocus
- End Sub
-